<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>菜品属性值</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>菜品属性值<small> <a href="{:U('Admin/Good/add_attributes_value')}" style="margin-left: 15px; color: #06cbc4">增加菜品属性值</a></small></h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>

                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>

                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>店铺名称</th>
                                <th>属性名称</th>
                                <th>属性值</th>
                                <th>属性价格</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="result" id="result">
                                <tr>
                                    <td>{$result.id}</td>
                                    <td>{$result.store_name}</td>
                                    <td>{$result.name_attribute}</td>
                                    <td>{$result.value}</td>
                                    <td>{$result.price}</td>
                                    <td>
                                        <a title="编辑" href="{:U('Admin/good/add_attributes_value',array('id'=>$result['id']))}"><i class="glyphicon glyphicon-pencil" style="margin-right: 10px;"></i></a>
                                        <a title="删除" style="text-decoration:none" class="ml-5" href="javascript:void(0);" onclick="subjectdel('{$result.id}')"><i class="glyphicon glyphicon-remove"></i></a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                        <div class="pagination" style="margin:0px;">
                            {$page}
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>

    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
        function subjectdel(id){
            var msg = "您真的确定要删除吗？";
            if (confirm(msg)==true){
                window.location.href="__CONTROLLER__/delValue/id/"+id;
            }else{
                return false;
            }
        }
    </script>
</body>
</html>
